Labels:text | screenshot | font | letter | paper OCR: Initialize z stream object load z_stream input buffer with next data block, If possible process a block of data save any zlib output found in z stream output buffer No Done with input and output? Yes free z stream object Figure 2: The compression or decompression process.